package gof_001_创建型_Create.gof_001_单例_Singleton.gof_010_Reflect;


public class Student {
    private volatile static Student student = null;

    public static Student getInstance(){
        if(student == null){
            synchronized(Student.class){
                if(student == null){
                    student = new Student();
                }
            }
        }
        return student;
    }
}
